package com.vcredit.creditcat.vo.payday;

import java.io.Serializable;

public class CommonResponse implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer code;// 错误码
	private String msg;// 消息
	private Object data;//返回实体
	private String log;

	public CommonResponse Success() {
		this.setCode(1);
		this.setMsg("success");
		return this;
	}
	public CommonResponse Failure(String msg) {
		this.setCode(0);
		this.setMsg(msg);
		return this;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public CommonResponse() {
	}
}
